package com.fbs.wowo.util.rongcloud;

import com.fbs.wowo.exception.InputVerifyFailedException;

import javax.validation.constraints.NotBlank;

public class RCMessage {
    @NotBlank
    private String senderId;
    private String targetId;
    private String senderName;
    private String crewId;
    private Integer isCrewVerify;  // 加群验证还是好友验证 1 加群 2 好友
    private String content;
    private String isGroup;

    public RCMessage() {
    }

    public RCMessage(@NotBlank String senderId, @NotBlank String targetId, @NotBlank String senderName,
                     Integer isCrewVerify, String crewId, String crewName, String content, String isGroup) throws InputVerifyFailedException {
        this.senderId = senderId;
        this.targetId = targetId;
        this.isCrewVerify = isCrewVerify;
        this.senderName = senderName;
        this.crewId = crewId;
        this.content = content;
        this.isGroup = isGroup;
    }

    public String getSenderName() {
        return senderName;
    }

    public void setSenderName(String senderName) {
        this.senderName = senderName;
    }

    public String getCrewId() {
        return crewId;
    }

    public void setCrewId(String crewId) {
        this.crewId = crewId;
    }

    public String getSenderId() {
        return senderId;
    }

    public void setSenderId(String senderId) {
        this.senderId = senderId;
    }

    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public Integer getIsCrewVerify() {
        return isCrewVerify;
    }

    public void setIsCrewVerify(Integer isCrewVerify) {
        this.isCrewVerify = isCrewVerify;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getIsGroup() {
        return isGroup;
    }

    public void setIsGroup(String isGroup) {
        this.isGroup = isGroup;
    }
}
